﻿using MgSoft.Excel.Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace MgSoft.Excel
{
    public class AggregateErrorException : Exception
    {
        public List<ExcelErrorMessage> ErrorMessages { get; }
        
        public AggregateErrorException(string message):base(message)
        {
        }
        public AggregateErrorException(string message,Exception exception) : base(message,exception)
        {
        }


        public AggregateErrorException(string message, List<ExcelErrorMessage> errorMessages) : base(message)
        {
            ErrorMessages = errorMessages;
        }
    }
}
